$(document).ready(function(){
    $("#add-to-cart").click(add_to_cart_submit);
});
function add_to_cart_submit() {
    product_id = $("#product-id").val();
    quantity = $("#buy-amount-text").val();
    url = "/products/"+product_id+"/";
    $("#outline-div").load(url,{"product-id": product_id, "buy-amount": quantity});
    return false;
}